from A_Designer import Ui_mainWindow
from PyQt5.QtWidgets import QApplication, QMainWindow
import sys
#
class mainwindow(QMainWindow):
    def __init__(self,parent=None):
        super(mainwindow,self).__init__(parent)
        self.ui=Ui_mainWindow() #关键点
        self.ui.setupUi(self)   #关键点

        self.work()
    def work(self):
        self.ui.pushButton.setText("更改按钮")

if __name__ == '__main__':
    app=QApplication(sys.argv)
    ui=mainwindow()
    # 显示本地窗口
    ui.show()
    sys.exit(app.exec_())

